/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>XLab Specimen Collection Providers</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19748 (C-0-T12206-A19679-A19748-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getXLabSpecimenCollectionProviders()
 * @model extendedMetaData="name='x_LabSpecimenCollectionProviders'"
 * @generated
 */
public enum XLabSpecimenCollectionProviders implements Enumerator {
	/**
	 * The '<em><b>Community Laboratory</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COMMUNITY_LABORATORY_VALUE
	 * @generated
	 * @ordered
	 */
	COMMUNITY_LABORATORY(0, "communityLaboratory", "communityLaboratory"),

	/**
	 * The '<em><b>Home Health</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HOME_HEALTH_VALUE
	 * @generated
	 * @ordered
	 */
	HOME_HEALTH(1, "homeHealth", "homeHealth"),

	/**
	 * The '<em><b>Laboratory</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LABORATORY_VALUE
	 * @generated
	 * @ordered
	 */
	LABORATORY(2, "laboratory", "laboratory"),

	/**
	 * The '<em><b>Pathologist</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PATHOLOGIST_VALUE
	 * @generated
	 * @ordered
	 */
	PATHOLOGIST(3, "pathologist", "pathologist"),

	/**
	 * The '<em><b>Phlebotomist</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PHLEBOTOMIST_VALUE
	 * @generated
	 * @ordered
	 */
	PHLEBOTOMIST(4, "phlebotomist", "phlebotomist"),

	/**
	 * The '<em><b>Self</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SELF_VALUE
	 * @generated
	 * @ordered
	 */
	SELF(5, "self", "self"),

	/**
	 * The '<em><b>Third Party</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #THIRD_PARTY_VALUE
	 * @generated
	 * @ordered
	 */
	THIRD_PARTY(6, "thirdParty", "thirdParty");

	/**
	 * The '<em><b>Community Laboratory</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Community Laboratory</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COMMUNITY_LABORATORY
	 * @model name="communityLaboratory"
	 * @generated
	 * @ordered
	 */
	public static final int COMMUNITY_LABORATORY_VALUE = 0;

	/**
	 * The '<em><b>Home Health</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Home Health</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HOME_HEALTH
	 * @model name="homeHealth"
	 * @generated
	 * @ordered
	 */
	public static final int HOME_HEALTH_VALUE = 1;

	/**
	 * The '<em><b>Laboratory</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Laboratory</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LABORATORY
	 * @model name="laboratory"
	 * @generated
	 * @ordered
	 */
	public static final int LABORATORY_VALUE = 2;

	/**
	 * The '<em><b>Pathologist</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Pathologist</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PATHOLOGIST
	 * @model name="pathologist"
	 * @generated
	 * @ordered
	 */
	public static final int PATHOLOGIST_VALUE = 3;

	/**
	 * The '<em><b>Phlebotomist</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Phlebotomist</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PHLEBOTOMIST
	 * @model name="phlebotomist"
	 * @generated
	 * @ordered
	 */
	public static final int PHLEBOTOMIST_VALUE = 4;

	/**
	 * The '<em><b>Self</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Self</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SELF
	 * @model name="self"
	 * @generated
	 * @ordered
	 */
	public static final int SELF_VALUE = 5;

	/**
	 * The '<em><b>Third Party</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Third Party</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #THIRD_PARTY
	 * @model name="thirdParty"
	 * @generated
	 * @ordered
	 */
	public static final int THIRD_PARTY_VALUE = 6;

	/**
	 * An array of all the '<em><b>XLab Specimen Collection Providers</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final XLabSpecimenCollectionProviders[] VALUES_ARRAY =
		new XLabSpecimenCollectionProviders[] {
			COMMUNITY_LABORATORY,
			HOME_HEALTH,
			LABORATORY,
			PATHOLOGIST,
			PHLEBOTOMIST,
			SELF,
			THIRD_PARTY,
		};

	/**
	 * A public read-only list of all the '<em><b>XLab Specimen Collection Providers</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<XLabSpecimenCollectionProviders> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>XLab Specimen Collection Providers</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static XLabSpecimenCollectionProviders get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			XLabSpecimenCollectionProviders result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>XLab Specimen Collection Providers</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static XLabSpecimenCollectionProviders getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			XLabSpecimenCollectionProviders result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>XLab Specimen Collection Providers</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static XLabSpecimenCollectionProviders get(int value) {
		switch (value) {
			case COMMUNITY_LABORATORY_VALUE: return COMMUNITY_LABORATORY;
			case HOME_HEALTH_VALUE: return HOME_HEALTH;
			case LABORATORY_VALUE: return LABORATORY;
			case PATHOLOGIST_VALUE: return PATHOLOGIST;
			case PHLEBOTOMIST_VALUE: return PHLEBOTOMIST;
			case SELF_VALUE: return SELF;
			case THIRD_PARTY_VALUE: return THIRD_PARTY;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private XLabSpecimenCollectionProviders(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //XLabSpecimenCollectionProviders
